#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：python_learning 
@File ：demo.py
@IDE  ：PyCharm 
@Author ：李涵彬
@Date ：2024/4/23 上午9:49 
"""

import time
from tqdm.notebook import tqdm
from joblib import Parallel, delayed


def task_demo1(i):
	# time.sleep(i)
	print(i)

	return time.time()


results = Parallel(n_jobs=4)(delayed(task_demo1)(i) for i in tqdm(range(10000)))

print(results)
